//1:一件商品生产日期是2017/7/12,保质期5年，算出失效日期
package Work0529;

import java.util.Calendar;

public class ExpirationDate {

	public static void main(String[] args) {
		Calendar day = Calendar.getInstance();
	 day.set(2017, Calendar.JULY, 12);
		System.out.println(day.getTime());
		day.add(Calendar.YEAR, 5);
		System.out.println("失效日期为" + day.getTime());
	}

}
